<template>
	<view>
		<view style="padding-left: 30rpx;padding-top: 20rpx;font-weight: bold;">您可通过以下任意一种方式认证</view>
		<view style="width: 90%;height: auto;background-color: #fee2cc;margin: auto;margin-top: 30rpx;font-size: 40rpx;padding:20rpx 0 20rpx 0rpx;text-align: center;" @click="collegeCard">通过校园卡认证</view>
		<view style="width: 90%;height: auto;background-color: #fee2cc;margin: auto;margin-top: 30rpx;font-size: 40rpx;padding:20rpx 0 20rpx 0rpx;text-align: center;" @click="network">通过学信网在线验证码认证</view>
	    <view style="margin-top: 30rpx;margin-left: 30rpx;display: flex;">
		<view>认证状态</view>
		<view style="padding-left: 30rpx;font-weight: bold;">{{state}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad() {
			this.$H.get("user/userInfo").then(res => {
			
				this.state = res.result.collegearrest
				if(this.state==0) {this.state="未认证"}
				if(this.state==1) {this.state="已认证"}
				})
		},
		data() {
			return {
				state:"",
				
			};
		},
		methods:{
			collegeCard(){
				 uni.navigateTo({
				 	url:'/pages/mine/collegeCard/collegeCard'
				 })
			},
			network(){
				uni.navigateTo({
					url:'/pages/mine/network/network'
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
